using UnityEngine;

public class TheRoaringTitans_Shadow : MonoBehaviour
{
	[SerializeField]
	private bool TargetPlayer;

	[SerializeField]
	private PartyMember TargetPartyMember;

	private Transform TargetTransform;

	private void LateUpdate()
	{
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		if ((Object)(object)TargetTransform != (Object)null)
		{
			((Component)this).transform.position = TargetTransform.position;
			return;
		}
		if (TargetPlayer)
		{
			TargetTransform = ((Component)PlayerManager.Instance.PlayerSpriteRenderer).transform;
			return;
		}
		ActivePartyMember activePartyMember = PartyMemberSystem.Instance.HasMemberInParty(TargetPartyMember);
		if (activePartyMember != null)
		{
			TargetTransform = ((Component)activePartyMember.PartyMemberFollowSettings.SusieAnimator).transform;
		}
	}
}
